<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../bootstrap-5.1.3-dist/css/bootstrap.css">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.js"></script>
</head>

<body class="container">
    <h2 class="mb-4">响应式浮动样式</h2>
    <div class="clearfix text-white">
        <div class="bg-success w-50">水光潋滟晴方好</div>
        <div class="float-md-start bg-danger w-50">山色空蒙雨亦奇</div>
        <div class="float-md-end bg-primary w-50">欲把西湖比西子</div>
    </div>
</body>

</html>